{% include 'common/head.html' %}
<body>
    {% include 'common/top.html' %}
    <div id="Wrapper">
    <div id="Main">
        <div id="Sidebar">   
        </div>
        <div id="Rightbar">
            {% include 'rightbar/user.html' %}
            <div class="sep20"></div>
            {% include 'rightbar/ads.html' %}
        </div>
        <div id="Content">
            <div class="box">
                <div class="cell"><span class="fade"><a href="/">{{ site.title }}</a> {{ l10n.chevron }} 我收藏的主题</span></div>
                {% if has_topics %}
                    {% for bookmark in bookmarks %}
                    <div class="cell from_{{ bookmark.topic.member.num }}">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
                    	<td valign="top" class="avatar"><a href="/member/{{ bookmark.topic.created_by }}">{{ bookmark.topic.member|avatar:"normal" }}</a></td>
                    	<td style="padding-left: 12px" valign="top">
                    	    {% ifequal bookmark.topic.replies 0 %}{% else %}
                    	        <div class="fr">
                    	            {% ifequal member.num bookmark.topic.member_num %}
                    	                <a href="/t/{{ bookmark.topic.num }}#reply{{ bookmark.topic.replies }}" class="count_orange">{{ bookmark.topic.replies }}</a>
                    	            {% else %}
                    	                <a href="/t/{{ bookmark.topic.num }}#reply{{ bookmark.topic.replies }}" class="count_livid">{{ bookmark.topic.replies }}</a>
                    	            {% endifequal %}
                    	        </div>
                    	    {% endifequal %}
                    	    <div class="sep3"></div>
                    		<span class="bigger" style="font-size: 16px">{% if site.use_topic_types %}{% if bookmark.topic.type %}<span style="display: inline-block; background-color: {{ bookmark.topic.type_color }}; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; color: #fff; padding: 0px 8px 0px 8px; font-size: 13px;">{{ bookmark.topic.type }}</span> &nbsp;{% endif %}{% endif %}<a href="/t/{{ bookmark.topic.num }}#reply{{ bookmark.topic.replies }}">{{ bookmark.topic.title|escape }}</a></span>
                    		<div class="sep5"></div>
                    		<span class="fade" style="font-size: 10px;">By <strong><a href="/member/{{ bookmark.topic.created_by|escape }}" class="dark">{{ bookmark.topic.created_by|escape }}</a></strong>{% if bookmark.topic.node_name %} in <strong><a href="/go/{{ bookmark.topic.node_name }}" class="dark">{{ bookmark.topic.node_title|escape }}</a></strong>{% endif %}<br />
                            <span class="created">{{ bookmark.topic.last_touched|timesince }} ago{% if bookmark.topic.last_reply_by %} replied by <a href="/member/{{ bookmark.topic.last_reply_by }}" class="dark">{{ bookmark.topic.last_reply_by }}</a>{% endif %}</span>
                    	</td>
                    	</tr>
                    </table>
                    </div>
                    {% endfor %}
                    <script type="text/javascript">
                    blocked = [{{ blocked }}];
                    $("#topics_index").children('.cell').each( function(index) {
                        for (i in blocked) {
                            if ($(this).hasClass('from_' + blocked[i])) {
                                $(this).css('display', 'none');
                            }
                        }
                    });
                    </script>
                {% else %}
                <div class="inner">
                <div class="sep20"></div>
                <div align="center"><h2 class="snow">目前你还没有收藏任何主题</h2></div>
                <div class="sep20"></div>
                </div>
                {% endif %}
                </div>
            </div>
        </div>
    <div class="c"></div>
    </div>
    </div>
    {% include 'common/bottom.html' %}
</body>
</html>